#pragma once
#include <afxtempl.h>
#include "SMTPConnection2.h"
class CSendEmail
{
public:
	CSendEmail(void);
	~CSendEmail(void);

	void SetSenderInfo(CString Sender, CString SenderName);
	void SetRecipientInfo(CString Recipient);
	void SetMailInfo(CString Subject, CString Text);
	void AddAttachFile(CString AttachFile);
	int SendMail();

	CString m_Sender;
	CString m_SenderName;
	CString m_Recipient;
	CString m_Subject;
	CString m_Text;
	CList<CString ,CString> m_AttachFileList;
	CString m_ReceiveServer;
};
